home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 12
/
Cream of the Crop 12 (Part II)
/
Cream of the Crop 12 (Part II).iso
/
BBS
/
EZY120_1.ZIP
/
STRUCT.ARJ
/
CLIB.ARJ
/
PASTOC.CPP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1996-03-09
|
357 b
|
20 lines
#include <ezycom.h>
#include <string.h>
void pPasToC(char *Source,char *&Dest)
{
if (!Dest) {
Dest = new char[(byte)Source[0]+1];
}
memcpy(Dest,Source + 1,(byte)Source[0]);
Dest[(byte)Source[0]] = '\0';
}
void PasToC(char *Source, char *Dest)
{
memcpy(Dest,Source + 1,(byte)Source[0]);
Dest[(byte)Source[0]] = '\0';
}